//
//  ConferenceTests.m
//  UnitTests
//
//  Created by Jiang on 2018/10/22.
//  Copyright © 2018 jiang. All rights reserved.
//

#import <XCTest/XCTest.h>
@interface ConferenceTests : XCTestCase

@end

@implementation ConferenceTests
- (void)testPrint {
    Session *m_session = [[Session alloc] initWithStartTime:9 endTime:[[SessionEndTime alloc]initWithEarlist:10]];
    Session *af_session = [[Session alloc] initWithStartTime:13 endTime:[[SessionEndTime alloc]initWithEarlist:14]];
    Conference *con1 = [[Conference alloc] initWithMsession:m_session afSession:af_session talks:[DataInputer exampleTestData]];
    [con1 print];
}

//- (void)testCalculatorTraceNodesCount{
//    Session *m_session = [[Session alloc] initWithStartTime:9 endTime:[[SessionEndTime alloc]initWithEarlist:12]];
//    Session *af_session = [[Session alloc] initWithStartTime:13 endTime:[[SessionEndTime alloc]initWithEarlist:16 latest:17]];
//    Conference *con1 = [[Conference alloc] initWithMsession:m_session afSession:af_session talks:[DataInputer exampleTestData]];
//    [con1 printTraceNodeCount];
//}

//- (void)testCalculatePerformance{
//    Session *m_session = [[Session alloc] initWithStartTime:9 endTime:[[SessionEndTime alloc]initWithEarlist:12]];
//    Session *af_session = [[Session alloc] initWithStartTime:13 endTime:[[SessionEndTime alloc]initWithEarlist:16 latest:17]];
//    Conference *con1 = [[Conference alloc] initWithMsession:m_session afSession:af_session talks:[DataInputer exampleTestData]];
//    [self measureBlock:^{
//        [con1 printTraceNodeCount];
//    }];
//}
//
//- (void)testNodesPrintPerformance{
//    Session *m_session = [[Session alloc] initWithStartTime:9 endTime:[[SessionEndTime alloc]initWithEarlist:12]];
//    Session *af_session = [[Session alloc] initWithStartTime:13 endTime:[[SessionEndTime alloc]initWithEarlist:16 latest:17]];
//    Conference *con1 = [[Conference alloc] initWithMsession:m_session afSession:af_session talks:[DataInputer exampleTestData]];
//    [self measureBlock:^{
//        [con1 print];
//    }];
//}

@end
